#define _CRT_SECURE_NO_WARNINGS 1

#include "stack.h"


void testSL()
{

	SL s;
	SLInit(&s);
	SLPush(&s, 1);
	SLPush(&s, 2);
	SLPush(&s, 3);
	SLPush(&s, 4);
	SLPush(&s, 5);
	SLPush(&s, 6);




	while (!SLEmmpty(&s))
	{
		printf("%d ", SLTop(&s));
		SLPop(&s);
	}
  
	
	SLDestory(&s);

}

int main()
{
	testSL();

	return 0;
}